#!/usr/bin/env bash

sd=DT56
ds=(DT57  TX231  TX232  TX510  TX511)
fname=compare_caffe.json

ask=true
for d in "${ds[@]}"
do
    if ${ask}
    then
        read -p "copy ./${sd}/${fname} ./${d}/${fname} ?(y/n/a)" ans
    fi
    if [ "$ans" == "y" -o "$ans" == "a" ]
    then
        cp -v ./${sd}/${fname} ./${d}/${fname}
    fi
    if [ "$ans" == "a" ]
    then
        ask=false
    fi
done
